package com.example.shiro.permission.dao;

import com.example.shiro.permission.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.shiro.role.entity.Role;

import java.util.List;

/**
 * <p>
 * 资源表 Mapper 接口
 * </p>
 *
 * @author linyb
 * @since 2021-02-10
 */
public interface PermissionDao extends BaseMapper<Permission> {

    /**
     * 根据Role查询Permission
     *
     */
    List<Permission> findPermissionByRole(Role role);

}
